﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Shumei.EFCore.SimpleService
{
    public interface ISimpleDAL<T> where T:class
    {
        T Add(T data, bool isSave = true);

        bool Update(T data,bool isSave = true);

        bool Delete(T data, bool isSave = true);

        bool Exist(Expression<Func<T, bool>> anyLambda);

        int Save();
    }
}
